package com.wanmait.translate.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

public class AdministrationTicket implements Serializable {
    private Integer id;

    /**
	* 申请表id
	*/
    private SupplierTravel supplierTravel;

    /**
	* 出发城市id
	*/
    private City departCity;

    /**
	* 出发时间
	*/
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private Date departDate;

    /**
	* 省份id
	*/
    private Province departProvince;

    /**
	* 到达城市
	*/
    private City arriveCity;

    /**
	* 回程日期
	*/
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private Date returnTrip;

    /**
	* 总费用
	*/
    private Long price;

    /**
	* 记录人id
	*/
    private String inputUser;

    /**
	* 创建时间
	*/
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private Date inputTime;

    /**
	* 备注
	*/
    private String remarks;

    /**
	* 逻辑删除
	*/
    private Boolean enable;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public SupplierTravel getSupplierTravel() {
        return supplierTravel;
    }

    public void setSupplierTravel(SupplierTravel supplierTravel) {
        this.supplierTravel = supplierTravel;
    }

    public City getDepartCity() {
        return departCity;
    }

    public void setDepartCity(City departCity) {
        this.departCity = departCity;
    }

    public Province getDepartProvince() {
        return departProvince;
    }

    public void setDepartProvince(Province departProvince) {
        this.departProvince = departProvince;
    }

    public City getArriveCity() {
        return arriveCity;
    }

    public void setArriveCity(City arriveCity) {
        this.arriveCity = arriveCity;
    }

    public Date getDepartDate() {
        return departDate;
    }

    public void setDepartDate(Date departDate) {
        this.departDate = departDate;
    }

    public Date getReturnTrip() {
        return returnTrip;
    }

    public void setReturnTrip(Date returnTrip) {
        this.returnTrip = returnTrip;
    }

    public Long getPrice() {
        return price;
    }

    public void setPrice(Long price) {
        this.price = price;
    }

    public String getInputUser() {
        return inputUser;
    }

    public void setInputUser(String inputUser) {
        this.inputUser = inputUser;
    }

    public Date getInputTime() {
        return inputTime;
    }

    public void setInputTime(Date inputTime) {
        this.inputTime = inputTime;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public Boolean getEnable() {
        return enable;
    }

    public void setEnable(Boolean enable) {
        this.enable = enable;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", supplierTravel=").append(supplierTravel);
        if(departCity==null) {
            sb.append(", departCity=").append("null");
        }else{
            sb.append(", departCity=").append(departCity.getName());
        }
        if(departDate==null) {
            sb.append(", departDate=").append("null");
        }else{
            sb.append(", departDate=").append(departDate);
        }
        if(departProvince==null) {
            sb.append(", province=").append("null");
        }else{
            sb.append(", province=").append(departProvince.getName());
        }
        if(arriveCity!=null) {
            sb.append(", arriveCityId=").append(arriveCity.getName());
        }else{
            sb.append(", arriveCityId=").append("null");
        }
        sb.append(", returnTrip=").append(returnTrip);
        if(price!=null) {
            sb.append(", price=").append(price);
        }else {
            sb.append(", price=").append("null");
        }
        if(inputUser!=null) {
            sb.append(", inputUser=").append(inputUser);
        }else {
            sb.append(", inputUser=").append("null");
        }
        if(inputTime!=null) {
            sb.append(", inputTime=").append(inputTime);
        }else {
            sb.append(", inputTime=").append("null");
        }
        if(remarks!=null) {
            sb.append(", remarks=").append(remarks);
        }else {
            sb.append(", remarks=").append("null");
        }
        sb.append(", enable=").append(enable);
        sb.append("]");
        return sb.toString();
    }
}